
<?php

use think\facade\Route;


Route::get("/",'Index/index');
Route::get("/main",'Index/main');
Route::get("login",'Login/index');
Route::post("login/post",'Login/post');
Route::get("my/update_password",'My/update_password');
Route::post("my/update_password",'My/update_password');
Route::get("my/out",'My/out');


Route::group('admin_user',function(){
    Route::get('/','AdminUser/index');
    Route::rule('/add','AdminUser/add','get|post');
    Route::rule('/edit/:id','AdminUser/edit','get|post');
    Route::rule('/delete/:id','AdminUser/delete','post');
    Route::rule('/update_password/:id','AdminUser/update_password','get|post');
});

Route::group('role',function(){
    Route::get('/','Role/index');
    Route::rule('/add','Role/add','get|post');
    Route::rule('/edit/:id','Role/edit','get|post');
    Route::rule('/delete/:id','Role/delete','post');
});

Route::group('user',function(){
    Route::get('/','User/index');
});


Route::miss(function() {
    return '404 Not Found!';
});